home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / DESKLIBC / SOURCES.ZIP / DeskLib / !DLSources / Libraries / Icon / c / LoseCaret < prev    next >
Text File  |  1995-07-08  |  470b  |  18 lines

  1. #include "DeskLib:Wimp.h"
  2. #include "DeskLib:WimpSWIs.h"
  3. #include "DeskLib:Icon.h"
  4.  
  5. extern void Icon_LoseCaret(window_handle window, icon_handle icon)
  6. /* Icon_LoseCaret
  7.  * This routine ensures that the caret is *not* contained within the
  8.  * designated icon. Only sets a new position if the icon currently contains
  9.  *  the caret.
  10.  */
  11. {
  12.   caret_block caret;
  13.  
  14.   Wimp_GetCaretPosition(&caret);
  15.   if (caret.window == window && caret.icon == icon)
  16.     Icon_SetCaret(-1, -1);
  17. }
  18.